<template>
    
    <div>
      
      <ve-line :data="chartData" :settings="chartSettings"></ve-line>
    </div>
  </template>
  
  <script>
    export default {
      data () {
        this.chartSettings = {
          metrics: ['访问用户', '下单用户'],
          dimension: ['日期']
        }
        return {
          chartData: {
            columns: [],
            rows: [
              
            ]
          }
        }
      },
     async created() {
        let res= await this.$http.get('data/sale')
        console.log(res);
        this.chartData.columns=res.data.columns;
        this.chartData.rows=res.data.rows;
      },
    }
  </script>